//package com.zzyl.nursing.controller.member;
//
//import com.zzyl.common.core.controller.BaseController;
//import com.zzyl.common.core.domain.AjaxResult;
//import com.zzyl.common.core.domain.R;
//import com.zzyl.common.utils.UserThreadLocal;
//import com.zzyl.nursing.domain.Reservation;
//import com.zzyl.nursing.service.MemberReservationService;
//import com.zzyl.nursing.vo.CountByTimeMemberVo;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
///**
// * 预约信息Controller
// *
// * @author ruoyi
// */
//@RestController
//@RequestMapping("/member/reservation")
//@Api(tags =  "预约信息相关接口")
//public class MemberReservationController extends BaseController
//{
//    @Autowired
//    private MemberReservationService memberReservationService;
//    @GetMapping("/cancelled-count")
//    @ApiOperation("查询取消预约数量")
//    public R<Integer> getCancelledReservationCount() {
//        Long userId = UserThreadLocal.getUserId();
//        Integer count = memberReservationService.getCancelledReservationCount(userId);
//        return R.ok(count);
//    }
//
//    @GetMapping("/countByTime")
//    public R<CountByTimeMemberVo> getCountByTime(Long time) {
//        CountByTimeMemberVo countByTimeMemberVo = memberReservationService.getCountByTime(time);
//        return R.ok(countByTimeMemberVo);
//    }
//
//    @PostMapping
//    public AjaxResult addReservation(@RequestBody Reservation reservation) {
//        memberReservationService.addReservation(reservation);
//        return AjaxResult.success();
//    }
//
//
//}